/*
 * @Author: YTian
 * @Date: 2023-05-08 21:12:37
 * @LastEditTime: 2023-05-18 11:28:22
 * @Description: 路由配置页面
 * @FilePath: \pcsong\src\router\index.js
 */
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: [
		{
			// 首页
			path: '/',
			name: 'home',
			component: () => import('@/views/home/Home.vue')
		},
		{
			// 歌单
			path: '/playlist',
			name: 'playlist',
			component: () => import('@/views/playlist/PlayList.vue')
		},
		{
			// 搜索
			path: '/search',
			name: 'search',
			component: () => import('@/views/search/Search.vue')
		},
		{
			// 歌手详情
			path: '/singer',
			name: 'singer',
			component: () => import('@/views/singer/Singer.vue')
		}
	]
})

export default router
